// 引入mockjs
const Mock = require('mockjs');
// 获取 mock.Random 对象
const Random = Mock.Random;
// mock一组数据

const  serviceName = {
	"list|2-4":[
	   {"serviceName":"August",
	   	"serviceMod":"fuw",
	   	"serviceSId":"9",
	   	"serviceState":"进行中",
	   	"list|2-4":[{
	   		"siName":"shili1",
	   	   "siIpAddress":"dizhi1",
	   	   "siStatus":"1"
	   	}]
	   }
	],
	
}
const  gridDataApi = {
	"gridData|2-4":[
	   {"configVersion":"August",
	   	"commitMessage":"fuw",
	   	"commitDate":"9",
	   	"datalist|2-4":[{
	   	   "commitDate":"shili1",
	   	   "configVersion":"August",
	   	   "commitMessage":"fuw",
	   	   "siIpAddress":"dizhi1",
	   	   "siStatus":"1"
	   	}]
	   }
	],
	
}

gridDataApi
// Mock.mock( url, post/get , 返回的数据)；
Mock.mock('/serviceDatas', 'post', serviceName);
Mock.mock('/class', 'post', gridDataApi);